<h1><?php echo $title;?></h1>

<?php
echo form_open_multipart('cschedule/edit');
echo "<table class='table-manipulate'>";

echo "<tr><td><label for='schedule_src'>Upload Schedule</label></td>";
echo "<td>";
$data = array('name'=>'schedule_src','class'=>'image-edit' ,'id'=>'schedule_src');
echo form_upload($data);
echo "<a href='#' class='cancel'>Cancel</a>";
echo "<img title='change image' class='img-change' style='style:width:80px; height:80px;'  src=".base_url().'images/'.$_SESSION['username'].'/'.$schedule['schedule_src']." /></p>";
echo "</td></tr>";

echo "<tr><td><label for='description'>Description</label></td>";
echo "<td>";
$data = array('name'=>'description','id'=>'description','size'=>'70','value'=>$schedule['description']);
echo form_input($data);
echo "</td></tr>";

echo "<tr><td><label for='semester'>Semester</label></td>";
echo "<td>";
$options = array('I' => 'I', 'II' => 'II');
echo form_dropdown('semester',$options, $schedule['semester'], 'style="width:105px;"');
echo "</td></tr>";

echo "<tr><td><label for='academy'>Academy</label></td>";
echo "<td>";
$data = array('name'=>'academy','id'=>'academy','value'=>$schedule['academy']);
echo form_input($data);
echo "</td></tr>";
echo "</table>";
echo form_hidden('schedule_id',$schedule['schedule_id']);
echo form_submit(array('class'=>'btn','name'=>'submit'),'Update Schedule');
echo form_close();


?>